package airplane.com.example.utilities;

import lombok.Data;

@Data
public class Result {
    private boolean status = true;
    private String msg;
    private Object object;

    public Result() {
    }

    public Result(String msg) {
        this.msg = msg;
    }

    public Result(String msg, boolean status) {
        this.status = status;
        this.msg = msg;
    }

    public Result(String msg, boolean status, Object object) {
        this.status = status;
        this.msg = msg;
        this.object = object;
    }

    public Result Status(String msg, boolean status) {
        this.msg = msg;
        this.status = status;
        return this;
    }
}
